﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Member_Manager.aspx.cs" Inherits="shop_Member_Manager" %>

<%@ Register Assembly="Infragistics2.WebUI.UltraWebGrid.v7.1, Version=7.1.20071.40, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.UltraWebGrid" TagPrefix="igtbl" %>
<%@ Register Assembly="Infragistics2.WebUI.Misc.v7.1, Version=7.1.20071.40, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.Misc" TagPrefix="igmisc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>网店管理-- 商城会员列表</title>
    <link href="../style/main.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        
        function CheckIsSelectCustomer()
        {
            var ID = document.getElementById("customerID").value;
            if(ID == "")
            {
                alert("请选择查看的会员");
                return false;
            }
        }
        
        function UWGMember_BeforeRowActivateHandler(gridName, rowId)
        {
	        var customerID = igtbl_getRowById(rowId).getCellFromKey("ID").getValue();	        document.getElementById("customerID").value = customerID;
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <br />
    <center>
        <table style="width: 96%; vertical-align: middle; background-color: #DAE7F8;" border="0px"
            cellpadding="0px" cellspacing="1px">
            <tr>
                <td style="height: 28px">
                    <igmisc:WebPanel ID="WebPanel1" runat="server" BackColor="#DAE7F8" BorderColor="#106DB0"
                        BorderWidth="1px" StyleSetName="" Width="100%" BorderStyle="Solid" Expanded="False">
                        <Header Text="商城会员">
                            <ExpandedAppearance>
                                <Styles BackColor="#DAE7F8" Font-Bold="True" Height="26px">
                                </Styles>
                            </ExpandedAppearance>
                        </Header>
                    </igmisc:WebPanel>
                </td>
            </tr>
            <tr>
                <td>
                    <igtbl:UltraWebGrid ID="UWGMember" runat="server" Height="350px" Width="100%" OnPageIndexChanged="UWGMember_PageIndexChanged">
                        <Bands>
                            <igtbl:UltraGridBand AllowUpdate="No">
                                <SelectedRowStyle BackColor="#99FF66" BorderColor="#99FF33" BorderStyle="Solid" BorderWidth="1px" />
                                <AddNewRow Visible="NotSet" View="NotSet">
                                </AddNewRow>
                                <Columns>
                                    <igtbl:UltraGridColumn BaseColumnName="CustomerNo" HeaderText="会员编号" Key="CustomerNo">
                                        <Header Caption="会员编号">
                                        </Header>
                                    </igtbl:UltraGridColumn>
                                    <igtbl:UltraGridColumn BaseColumnName="CustomerName" HeaderText="姓名" Key="CustomerName">
                                        <Header Caption="姓名">
                                            <RowLayoutColumnInfo OriginX="1" />
                                        </Header>
                                        <Footer>
                                            <RowLayoutColumnInfo OriginX="1" />
                                        </Footer>
                                    </igtbl:UltraGridColumn>
                                    <igtbl:UltraGridColumn BaseColumnName="sex" HeaderText="性别" Key="sex">
                                        <Header Caption="性别">
                                            <RowLayoutColumnInfo OriginX="2" />
                                        </Header>
                                        <Footer>
                                            <RowLayoutColumnInfo OriginX="2" />
                                        </Footer>
                                    </igtbl:UltraGridColumn>
                                    <igtbl:UltraGridColumn BaseColumnName="City" HeaderText="城市" Key="City">
                                        <Header Caption="城市">
                                            <RowLayoutColumnInfo OriginX="3" />
                                        </Header>
                                        <Footer>
                                            <RowLayoutColumnInfo OriginX="3" />
                                        </Footer>
                                    </igtbl:UltraGridColumn>
                                    <igtbl:UltraGridColumn BaseColumnName="Email" HeaderText="电子邮件" Key="Email" Width="180px">
                                        <Header Caption="电子邮件">
                                            <RowLayoutColumnInfo OriginX="4" />
                                        </Header>
                                        <Footer>
                                            <RowLayoutColumnInfo OriginX="4" />
                                        </Footer>
                                    </igtbl:UltraGridColumn>
                                    <igtbl:UltraGridColumn BaseColumnName="RegisterDate" HeaderText="注册日期" Key="RegisterDate" Width="180px">
                                        <Header Caption="注册日期">
                                            <RowLayoutColumnInfo OriginX="5" />
                                        </Header>
                                        <Footer>
                                            <RowLayoutColumnInfo OriginX="5" />
                                        </Footer>
                                    </igtbl:UltraGridColumn>
                                    <igtbl:UltraGridColumn BaseColumnName="ID" HeaderText="编号" Hidden="True" Key="ID">
                                        <Header Caption="编号">
                                            <RowLayoutColumnInfo OriginX="6" />
                                        </Header>
                                        <Footer>
                                            <RowLayoutColumnInfo OriginX="6" />
                                        </Footer>
                                    </igtbl:UltraGridColumn>
                                    <igtbl:UltraGridColumn BaseColumnName="State" HeaderText="状态" Key="State" Width="180px">
                                        <Header Caption="状态">
                                            <RowLayoutColumnInfo OriginX="7" />
                                        </Header>
                                        <Footer>
                                            <RowLayoutColumnInfo OriginX="7" />
                                        </Footer>
                                    </igtbl:UltraGridColumn>
                                </Columns>
                            </igtbl:UltraGridBand>
                        </Bands>
                        <DisplayLayout Version="4.00" SelectTypeRowDefault="Extended" Name="UWGMember" AllowSortingDefault="OnClient"
                            AllowDeleteDefault="Yes" AllowColSizingDefault="Free" RowHeightDefault="20px"
                            TableLayout="Fixed" ViewType="Hierarchical" AllowColumnMovingDefault="OnServer"
                            HeaderClickActionDefault="SortMulti" StationaryMargins="Header" BorderCollapseDefault="Separate"
                            StationaryMarginsOutlookGroupBy="True" AutoGenerateColumns="False" CellClickActionDefault="RowSelect"
                            IndentationTypeDefault="Flat" NoDataMessage="没有查询到数据！" UseFixedHeaders="True">
                            <FrameStyle BackColor="Window" BorderColor="#FF6600" BorderWidth="1px" Font-Names="Microsoft Sans Serif"
                                Font-Size="8.25pt" Height="350px" Width="100%">
                            </FrameStyle>
                            <Pager MinimumPagesForDisplay="2" AllowPaging="True" NextText="下页" PageSize="20"
                                PrevText="上页" StyleMode="ComboBox" Pattern="&lt;table width=100%&gt;&lt;tr&gt;&lt;td align=left&gt;页码：[currentpageindex]/[pagecount] 每页:[pagesize]条&lt;/td&gt;&lt;td align=right&gt;[default]&lt;td&gt;&lt;/tr&gt;&lt;/table&gt;">
                                <Style BackColor="#FFFF99">
                                    <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" > </BorderDetails ></Style>
                            </Pager>
                            <EditCellStyleDefault BorderWidth="0px" BorderStyle="None">
                            </EditCellStyleDefault>
                            <FooterStyleDefault BackColor="LightGray" BorderWidth="1px" BorderStyle="Solid">
                                <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px">
                                </BorderDetails>
                            </FooterStyleDefault>
                            <HeaderStyleDefault HorizontalAlign="Center" BackColor="#FFFF99" BorderStyle="Solid"
                                Height="26px" VerticalAlign="Middle">
                                <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px">
                                </BorderDetails>
                            </HeaderStyleDefault>
                            <RowSelectorStyleDefault Width="10px">
                            </RowSelectorStyleDefault>
                            <RowStyleDefault BackColor="Window" BorderColor="Silver" BorderWidth="1px" BorderStyle="Solid"
                                Font-Names="Microsoft Sans Serif" Font-Size="8.25pt">
                                <Padding Left="3px"></Padding>
                                <BorderDetails ColorLeft="Window" ColorTop="Window"></BorderDetails>
                            </RowStyleDefault>
                            <GroupByRowStyleDefault BackColor="Control" BorderColor="Window">
                            </GroupByRowStyleDefault>
                            <SelectedRowStyleDefault BackColor="#E4FFCA" BorderColor="#99FF99" BorderStyle="Solid"
                                BorderWidth="1px" Cursor="Hand">
                            </SelectedRowStyleDefault>
                            <GroupByBox Hidden="True" Prompt="">
                                <Style BackColor="ActiveBorder" BorderColor="Window">
                                    </Style>
                            </GroupByBox>
                            <AddNewBox>
                                <Style BackColor="Window" BorderColor="InactiveCaption" BorderWidth="1px" BorderStyle="Solid">
                                    <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" > </BorderDetails ></Style>
                            </AddNewBox>
                            <ActivationObject BorderColor="" BorderWidth="">
                            </ActivationObject>
                            <FilterOptionsDefault>
                                <FilterDropDownStyle CustomRules="overflow:auto;" BackColor="White" BorderColor="Silver"
                                    BorderWidth="1px" BorderStyle="Solid" Font-Names="Verdana,Arial,Helvetica,sans-serif"
                                    Font-Size="11px" Height="300px" Width="200px">
                                    <Padding Left="2px"></Padding>
                                </FilterDropDownStyle>
                                <FilterHighlightRowStyle BackColor="#151C55" ForeColor="White">
                                </FilterHighlightRowStyle>
                                <FilterOperandDropDownStyle CustomRules="overflow:auto;" BackColor="White" BorderColor="Silver"
                                    BorderWidth="1px" BorderStyle="Solid" Font-Names="Verdana,Arial,Helvetica,sans-serif"
                                    Font-Size="11px">
                                    <Padding Left="2px"></Padding>
                                </FilterOperandDropDownStyle>
                            </FilterOptionsDefault>
                            <ClientSideEvents BeforeRowActivateHandler="UWGMember_BeforeRowActivateHandler" />
                        </DisplayLayout>
                    </igtbl:UltraWebGrid>
                </td>
            </tr>
            <tr>
                <td>
                    <div style="width: 100%; background-color: #DAE7F8; text-align: left; height: 26px; vertical-align: middle;">
    &nbsp;&nbsp;
                        <asp:Button ID="btnDetail" runat="server" Text="查看详情" Height="22px" Width="90px" OnClientClick="return CheckIsSelectCustomer()" OnClick="btnDetail_Click" />
                        &nbsp;&nbsp;
                        <asp:Button ID="btnStart" runat="server" Text="正常" Height="22px" Width="90px" 
                            OnClientClick="return CheckIsSelectCustomer()" onclick="btnStart_Click" />
                        &nbsp;&nbsp;
                        <asp:Button ID="btnStop" runat="server" Text="废点" Height="22px" Width="90px" 
                            OnClientClick="return CheckIsSelectCustomer()" onclick="btnStop_Click" />                    
                    </div>
                </td>
            </tr>
        </table>
    </center>
    
    <input id="customerID" type="hidden" runat="server"/>    
    <asp:TextBox ID="hSiteID" runat="server" Visible="false"></asp:TextBox>
    <asp:TextBox ID="hCustomerID" runat="server" Visible="false"></asp:TextBox>
    <asp:TextBox ID="hCustomerTypeID" runat="server" Visible="false"></asp:TextBox>
    
    </form> 
</body>
</html>
